package com.tree;

public class Test {
    public static void main(String[] args) {
        MyTree myTree = new MyTree();
        MyTree.TreeNode root= myTree.creat();
        myTree.print(root);
        System.out.println("size="+myTree.getsize(root));
        System.out.println("height="+myTree.hight(root));
        System.out.println(myTree.leaves(root));
    }
}
